package com.imon.web.codesphere.data;

import org.bson.types.ObjectId;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;

@Entity
public class RevisionChangeSet {

	@Id
	private ObjectId id;

	private String fileKind;
	private char changeType;
	private long copyRevision;
	private String path;
	private String copyPath;

	public String getPath() {
		return path;
	}

	public void setPath(final String aPath) {
		this.path = aPath;
	}

	public long getCopyRevision() {
		return copyRevision;
	}

	public void setCopyRevision(final long aCopyRevision) {
		this.copyRevision = aCopyRevision;
	}

	public char getChangeType() {
		return changeType;
	}

	public void setChangeType(final char aType) {
		changeType = aType;
	}

	public String getCopyPath() {
		return copyPath;
	}

	public void setCopyPath(final String aCopyPath) {
		this.copyPath = aCopyPath;
	}

	public void setFileKind(final String aFileKind) {
		this.fileKind = aFileKind;
	}

	public String getFileKind() {
		return fileKind;
	}

	@Override
	public String toString() {
		return "RevisionChangeSet [id=" + id + ", fileKind=" + fileKind + ", changeType=" + changeType
				+ ", copyRevision=" + copyRevision + ", path=" + path + ", copyPath=" + copyPath + "]";
	}
}
